import subprocess
import pytest


def allure_generate(report_path):
    allure_cmd = "allure serve %s " % report_path
    subprocess.call(allure_cmd, shell=True)


if __name__ == '__main__':
    pytest.main()
    allure_generate("./report/result")